package com.gitee.huanminabc.fastboot.web.exception;

import com.gitee.huanminabc.jcommon.reflect.ReflectPath;
import com.gitee.huanminabc.fastboot.web.servlet.InterfaceMethodDefDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


@EqualsAndHashCode(callSuper = true)
@Data
public class ApiParamNonSupportException extends RuntimeException implements Serializable {
    private String paramName;

    public ApiParamNonSupportException(String paramName, InterfaceMethodDefDesc interfaceMethodDefDesc, String message) {
        super(ReflectPath.getMethodParamAll(interfaceMethodDefDesc.getMethod())+"->" + paramName+" : "+message);
        this.paramName = paramName;
    }
}